<empty name="adgroups">
该推广计划下没有正在推广的宝贝. <a href="/promote/manual?campaign_id={$campaign_id}">点此新建一个推广</a>
<else />
<table cellpadding="0" cellspacing="0" border="0" class="metrotable" id="summary_table">
    <input type="checkbox" class="selectAll" style="margin-left:12px;">
    <button class="deleteAdgroup" style="width:55px;padding:1px;margin-left:5px;">批量删除</button>
    <button class="statusAdgroup" data-action="start" style="width:55px;padding:1px;margin-left:5px;">批量开启</button>
    <button class="statusAdgroup" data-action="stop" style="width:55px;padding:1px;margin-left:5px;">批量暂停</button>
    <thead>
        <tr>
        	<th class="head0 nolborder">	
            </th>
            <th class="head1" style="width:25%;" ><a href="javascript:void(0);" >宝贝标题</a></th>
            <th class="head0 sortable sorting_desc" data-sort='status' style="width:6%;" ><a href="javascript:void(0);" >状态</a></th>
            <th class="head1" data-sort='impressions' style="width:10%;" ><a href="javascript:void(0);" >展现量</a></th>
            <th class="head0" data-sort='click' style="width:6%;" ><a href="javascript:void(0);" >点击量</a></th>
            <th class="head1" data-sort='ctr' style="width:6%;"><a href="javascript:void(0);" >点击率</a></th>
            <th class="head0" data-sort='cpc' style="width:6%;"><a href="javascript:void(0);" >单次点击花费</a></th>
            <th class="head1" data-sort='cpm' style="width:6%;"><a href="javascript:void(0);" >千次展现花费</a></th>
            <th class="head0" data-sort='cost' style="width:6%;"><a href="javascript:void(0);" >花费</a></th>
            <th class="head1" data-sort='sales' style="width:6%;"><a href="javascript:void(0);" >销售额</a></th>
            <th class="head0" data-sort='roi' style="width:6%;" ><a href="javascript:void(0);" >投入产出比</a></th>
            <th class="head1 norborder" style="width:10%;">操作</th>
        </tr>
    </thead>

    <tbody id="campaign_body">
        <volist name="adgroups" id="v">
        <tr class="gradeX" id="adgroup_{$v.adgroup_id}">
            <td style="padding-left: 12px;text-align: left;">
            	<input type="checkbox" class="check" name="check[]" value="{$v.adgroup_id}">
            </td>
            <td class="nolborder">
            
	           <ul class="listview">
	                     <li>
	                         <div class="icon">
	                             <img src="{$v.img_url}">
	                         </div>
	
	                         <div class="data" >
	                             <h6><a href="/adgroup/manage?adgroup_id={$v.adgroup_id}" id="data_title" >{$v.title}</a></h6>
	                             <div class="field">
	                               	<span style="color:grey;background-color: white;">推广类型:{$v.drive_type_str}</span>
	                             </div>
	                         </div>
	                     </li>
	           </ul> 
	           <span><strong class="red deleteInfo"></strong></span>
            </td>
            
           	<td>
	           		<if condition="$v.online_status eq 'online' && $v.offline_type eq 'online'">
	           		<span class="online_status label label-success">{$v.status_str}</span>
	           		<else/>
	           		<span class="label online_status tooltips" title="{$v.reason}">{$v.status_str}</a>
	           		</if>
           	</td>
           <td>
                汇总：{$v.summary.impressions}<br>
                计算机：{$v.pc.impressions}<br>
                无线：{$v.wireless.impressions}
            </td>
            <td>
                {$v.summary.click}<br>
                {$v.pc.click}<br>
                {$v.wireless.click}
            </td>
            <td class="center">
                {$v.summary.ctr}%<br>
                {$v.pc.ctr}%<br>
                {$v.wireless.ctr}%
            </td>
            <td>
                ￥{$v.summary.cpc}<br>
                ￥{$v.pc.cpc}<br>
                ￥{$v.wireless.cpc}
            </td>
            <td>
                ￥{$v.summary.cpm}<br>
                ￥{$v.pc.cpm}<br>
                ￥{$v.wireless.cpm}
            </td>
            <td  class="center ">
                <span class="orange">￥{$v.summary.cost}</span><br>
                <span class="orange">￥{$v.pc.cost}</span><br>
                <span class="orange">￥{$v.wireless.cost}</span>
            </td>
            <td>
                <span class="orange">￥{$v.summary.sales}</span><br>
                <span class="orange">￥{$v.pc.sales}</span><br>
                <span class="orange">￥{$v.wireless.sales}</span>
            </td>
            <td >
                <span class="heavy">{$v.summary.roi}</span><br>
                <span class="heavy">{$v.pc.roi}</span><br>
                <span class="heavy">{$v.wireless.roi}</span>
            </td>
            <td class="center norborder" style="padding-left:28px;">
            	<if condition="$v.online_status eq 'online'">
	               <a class="btn btn3 btn-nobg btn_pause_s openUrlBtn tooltips pauseadgroup" href="javascript:void(0);" data-adgroup_id="{$v.adgroup_id}" title="暂停推广组">暂停</a>
	           <else/>
	               <a class="btn btn3 btn-nobg btn_start_s openUrlBtn tooltips pauseadgroup" href="javascript:void(0);" data-adgroup_id="{$v.adgroup_id}" title="启动推广组">启动</a>
	           </if>
	           <a class="btn btn3 btn-nobg btn_trash_s deladgroup tooltips" title="删除这个推广组" data-url="/adgroup/remove?adgroup_id={$v.adgroup_id}" href="javascript:void(0);">删除</a>
	           <a class="btn btn3 btn-nobg btn_settings3_s openUrlBtn tooltips" href="/adgroup/manage?adgroup_id={$v.adgroup_id}" title="设置推广组详情">查看</a>
	        </td>
        </tr>
        </volist>

    </tbody>
</table>
</empty>
